package com.jswlw.controller.api.resp;

import com.jswlw.common.BaseApiResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@ApiModel(description = "API-滤芯详情响应对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class DevFilterResponse extends BaseApiResponse {

    DevFilterData data;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    public static class DevFilterListData {
        @ApiModelProperty(value = "id", required = true, example = "1")
        Integer id;
        @ApiModelProperty(value = "名称", required = true, example = "1")
        String name;
        @ApiModelProperty(value = "描述", required = true, example = "1")
        String description;
        @ApiModelProperty(value = "剩余", required = true, example = "1")
        Integer remain;
        @ApiModelProperty(value = "排序", required = true, example = "1")
        Integer sort;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    public static class DevFilterData {
        @ApiModelProperty(value = "数据列表")
        List<DevFilterListData> listData;
        @ApiModelProperty(value = "描述", required = true, example = "1")
        String description;
    }
}
